﻿@model Bordspil.Models.LocalPasswordModel
@{
    ViewBag.Title = "Manage Account";
}
<div id="groups">


    <h3 class="group-name">Stillingar</h3>
    <br>

@if (ViewBag.HasLocalPassword)
{
    @Html.Partial("_ChangePasswordPartial")
}
else
{ 
    @Html.Partial("_SetPasswordPartial")
}

<h3 class="group-name">Breyta prófíl mynd</h3>

<div id="uploadeddiv">
 <img id = "ManagePicture" src='@Url.Action("getAvatar", "Account")', alt="Notendamynd" />
<form action="/Account/UploadAvatar" method="post" enctype="multipart/form-data" id="profile-upload">
    <label for="file">Skrá:</label>
    <input type="file" name="file" id="file" />
 
    <input class="btn btn-danger" type="submit" name="submit" value="Staðfesta"  id="move-button2"/>
</form>
</div>

<!--
<section id="externalLogins">
    @Html.Action("RemoveExternalLogins")

    <h3>Add an external login</h3>
    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>
    -->
    </div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
